package littlecyberwar.ui;

import javax.swing.JToggleButton;
import java.awt.*;

import littlecyberwar.tool.MouseHandler;

public class LCWButton extends JToggleButton {

  public static final int _buttonSize = 34;

  // MouseHandler mHandler;  // used by this button to handle selected units onboard

  public LCWButton() {
    init();
    System.out.println("Don't forget to pass in a MouseHandler");
  }

  public LCWButton(String mouseHandlerClassName, PlayingBoardPanel board) {
    init();

  }

  private void init() {
    Dimension d = new Dimension(_buttonSize,_buttonSize);
    setPreferredSize(d);
    setMaximumSize(d);
    setMinimumSize(d);
    setMargin(new Insets(0,10,0,0));
  }

}